home *** CD-ROM | disk | FTP | other *** search
- Path: rover.ucs.ualberta.ca!mcbride
- From: mcbride@ee.ualberta.ca (Darin McBride)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.edu,comp.lang.eiffel
- Subject: Re: Hungarian notation
- Followup-To: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.edu,comp.lang.eiffel
- Date: 16 Jan 1996 20:03:44 GMT
- Organization: University of Alberta Electrical Engineering Department
- Message-ID: <4dh0b0$10si@pulp.ucs.ualberta.ca>
- References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@barnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd3ga$80a@beatty.slip.netcom.com> <dewar.819643725@schonberg> <4bhe6u$adq@beatty.slip.netcom.com> <dewar.819838019@schonberg> <4bv1ce$co1@ixnews4.ix.netcom.com>
- NNTP-Posting-Host: hp02.ee.ualberta.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- Timothy J. Halloran (halloran@ix.netcom.com) wrote:
- > dewar@cs.nyu.edu (Robert Dewar) wrote:
-
- > I agree. For another viewpoint consider what Steve McConnell writes
- > on pg 206 of "Code Complete":
-
- > "Some of the versions of Hungarian that are in wide circulation
- > virtually ignore the use of abstract data types as base types.
- > Instead, they set up base types based on programming-language
- > integers, long integers, floating-point numbers, and strings. The
- > result is a convention of little value, one that forces programmers to
- > worry about manual type checking instead of letting the compiler check
- > the types more rapidly and accurately."
-
- Well, first, as a disclaimer, we used adt's (classes, structs, etc.) as
- base types. But we still found use in using the 'm_lLongVar' style
- since we had to use sprintf alot (in real-time data-gathering, sometimes
- the overhead of strstream was prohibitive). So was that a %d, %u, %ld,
- %lu... or %s? Our variables told us without having to go back to the
- header file for that class to look which type that member variable was.
- Possibly if we were using streams exclusively, we could have ignored
- types and let the compiler do the work (which is what we paid $600CDN
- per copy for anyway!).
-
- I guess it depends on the environment you're in. :-)
-
- --
- Darin McBride:mcbride@ee.ualberta.ca/mcbride@tower.bohica.net
-
- Enjoy each day as if it were your last, care about each moment as if
- it were your last for one day, one moment, you *will* be right!
-
- Tips & Tricks for IBM Hardware, MSDOS, OS2, Windows (including Win'95):
- http://www.ee.ualberta.ca/~mcbride/tiptrick.html
-